<div>
	<h3>Přidat kategorii</h3>
	<form action="" method="post">
		<label>Název: <input type="text" name="nazev"></label><br />
		<label>Rodičovská kategorie: <select name="parent" class="chzn-select" style="width:150px;" id="novy">
			<option value="null">-žádná-</option>
			<?php 
					$kat = Category::getCategories();
					foreach ($kat as $value) {
						if (Category::hasParent($value["id"])) {
							continue;
						}
						echo '<option value="' . $value["id"] . '">' . $value["nazev"] . '</option>';
					}
				?>
				</select></label><br>
		<input type="hidden" name="pridat_kategorii">
		<input type="submit" value="Přidat kategorii">
	</form>
</div>